package com.cn.kehong.domain;

import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class ProductChuciPeriod {
    private String id;

    private String peiId;

    private String factoryName;

    private String productCode;

    private String thinGuanCode;

    private String startTime;

    private String endTime;

    private String spendTime;

    private String chuciMachine;

    private String chengGuanCode;

    private String chuciStatus;

    private String recordUserName;

    private String status;
    private String gzPeriod;
    private String chengStartTime;
    private String chengEndTime;

    private String startCode;
    private String ltask;
    private String xjian;

    private String gradeValue;

    private Date createTime;

    private Date updateTime;

    private int count;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "未开始", "1", "进行中", "2", "已完成");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getPeiId() {
        return peiId;
    }

    public void setPeiId(String peiId) {
        this.peiId = peiId == null ? null : peiId.trim();
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName == null ? null : factoryName.trim();
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode == null ? null : productCode.trim();
    }

    public String getThinGuanCode() {
        return thinGuanCode;
    }

    public void setThinGuanCode(String thinGuanCode) {
        this.thinGuanCode = thinGuanCode == null ? null : thinGuanCode.trim();
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime == null ? null : startTime.trim();
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime == null ? null : endTime.trim();
    }

    public String getSpendTime() {
        return spendTime;
    }

    public void setSpendTime(String spendTime) {
        this.spendTime = spendTime == null ? null : spendTime.trim();
    }

    public String getChuciMachine() {
        return chuciMachine;
    }

    public void setChuciMachine(String chuciMachine) {
        this.chuciMachine = chuciMachine == null ? null : chuciMachine.trim();
    }

    public String getChengGuanCode() {
        return chengGuanCode;
    }

    public void setChengGuanCode(String chengGuanCode) {
        this.chengGuanCode = chengGuanCode == null ? null : chengGuanCode.trim();
    }

    public String getChuciStatusCn() {
        return STATUSMAP.get(getChuciStatus());
    }
    public String getChuciStatus() {
        return chuciStatus;
    }

    public void setChuciStatus(String chuciStatus) {
        this.chuciStatus = chuciStatus == null ? null : chuciStatus.trim();
    }

    public String getRecordUserName() {
        return recordUserName;
    }

    public void setRecordUserName(String recordUserName) {
        this.recordUserName = recordUserName == null ? null : recordUserName.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getGzPeriod() {
        return gzPeriod;
    }

    public void setGzPeriod(String gzPeriod) {
        this.gzPeriod = gzPeriod;
    }

    public String getChengStartTime() {
        return chengStartTime;
    }

    public void setChengStartTime(String chengStartTime) {
        this.chengStartTime = chengStartTime;
    }

    public String getChengEndTime() {
        return chengEndTime;
    }

    public void setChengEndTime(String chengEndTime) {
        this.chengEndTime = chengEndTime;
    }

    public String getStartCode() {
        return startCode;
    }

    public void setStartCode(String startCode) {
        this.startCode = startCode;
    }

    public String getLtask() {
        return ltask;
    }

    public void setLtask(String ltask) {
        this.ltask = ltask;
    }

    public String getXjian() {
        return xjian;
    }

    public void setXjian(String xjian) {
        this.xjian = xjian;
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue;
    }

    @Override
    public String toString() {
        return "ProductChuciPeriod{" +
                "id='" + id + '\'' +
                ", peiId='" + peiId + '\'' +
                ", factoryName='" + factoryName + '\'' +
                ", productCode='" + productCode + '\'' +
                ", thinGuanCode='" + thinGuanCode + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", spendTime='" + spendTime + '\'' +
                ", chuciMachine='" + chuciMachine + '\'' +
                ", chengGuanCode='" + chengGuanCode + '\'' +
                ", chuciStatus='" + chuciStatus + '\'' +
                ", recordUserName='" + recordUserName + '\'' +
                ", status='" + status + '\'' +
                ", gzPeriod='" + gzPeriod + '\'' +
                ", chengStartTime='" + chengStartTime + '\'' +
                ", chengEndTime='" + chengEndTime + '\'' +
                ", startCode='" + startCode + '\'' +
                ", ltask='" + ltask + '\'' +
                ", xjian='" + xjian + '\'' +
                ", gradeValue='" + gradeValue + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", count=" + count +
                '}';
    }
}